﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Owners/Owners.Master" AutoEventWireup="true" CodeBehind="OwnerApartmans.aspx.cs" Inherits="Pep_3014_3070.Owners.OwnerApartmans" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="main-contents" style="margin-top: 150px !important;">
        <div class="container">
            <div class="row">
                <div class="top-fields">
                    <div class="input-field col-md-10">
                        <asp:TextBox ID="TitleInput" runat="server" placeholder="Unesite naziv apartmana" OnTextChanged="TitleInput_TextChanged"></asp:TextBox>
                    </div>
                    <div class="submit-btn col-lg-2 col-md-2">
                        <asp:Button ID="AddNewPeriod" runat="server" Text="Traži!" CssClass="btn btn-blue" OnClick="AddNewPeriod_Click" />
                    </div>
                </div>
            </div>
            <hr />
            <div class="row">
                <div class="table-responsive">
                    <asp:GridView ID="ApartmansGridView" runat="server" AutoGenerateColumns="false" GridLines="None" CssClass="table table-style-2" OnRowCommand="ApartmansGridView_RowCommand">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <div class="col-lg-6 col-md-6">

                                        <asp:HyperLink ID="ApartmanDetailsLink" runat="server" NavigateUrl='<%# string.Format("/ApartmanDetails/{0}",Eval("ApartmentID")) %>'><%# Eval("Title") %></asp:HyperLink>
                                    </div>
                                    <div class="col-lg-6 col-md-6">
                                        <div class="btn-group pull-right">
                                            <asp:Button ID="DeleteApartmanButton" runat="server" Text="Obrisi" CssClass="btn btn-danger" CommandName="DeleteApartmanButton" CommandArgument='<%# Eval("ApartmentID") %>' />
                                        </div>
                                    </div>

                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
            </div>


                <div class="submit-btn col-lg-2">
                    <asp:Button ID="PreviousButton" runat="server" Text="Prethodni" CssClass="btn btn-primary btn-blue" OnClick="PreviousButton_Click" />
                </div>
                <div class="submit-btn col-lg-2">
                    <asp:Button ID="NextButton" runat="server" Text="Slejdeci" CssClass="btn btn-primary btn-blue" OnClick="NextButton_Click" />
                </div>

        </div>
    </div>
</asp:Content>
